<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>3dchess: MenuLoadGame Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3dchess
   </div>
   <div id="projectbrief">Basic chess application with OpenGL graphics and AI</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_menu_load_game-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MenuLoadGame Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class which holds the state LoadGame.  
 <a href="class_menu_load_game.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_menu_load_game_8h_source.html">MenuLoadGame.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for MenuLoadGame:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_menu_load_game.png" usemap="#MenuLoadGame_map" alt=""/>
  <map id="MenuLoadGame_map" name="MenuLoadGame_map">
<area href="class_abstract_state.html" title="Interface for modelling a game state. " alt="AbstractState" shape="rect" coords="0,0,104,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7439982a1478ed24f940015773a70746"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7439982a1478ed24f940015773a70746"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a7439982a1478ed24f940015773a70746">MenuLoadGame</a> ()</td></tr>
<tr class="memdesc:a7439982a1478ed24f940015773a70746"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new menu LoadGame State object. <br/></td></tr>
<tr class="separator:a7439982a1478ed24f940015773a70746"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d1319eb1e74af8c48fb66f918f7c67e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a1d1319eb1e74af8c48fb66f918f7c67e">enter</a> () override</td></tr>
<tr class="memdesc:a1d1319eb1e74af8c48fb66f918f7c67e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enters the state for the first time.  <a href="#a1d1319eb1e74af8c48fb66f918f7c67e">More...</a><br/></td></tr>
<tr class="separator:a1d1319eb1e74af8c48fb66f918f7c67e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64e0d14e82a98dc7b4b6c87e5c979487"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_abstract_state.html">AbstractState</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a64e0d14e82a98dc7b4b6c87e5c979487">run</a> () override</td></tr>
<tr class="memdesc:a64e0d14e82a98dc7b4b6c87e5c979487"><td class="mdescLeft">&#160;</td><td class="mdescRight">Runs the current state and does all the work.  <a href="#a64e0d14e82a98dc7b4b6c87e5c979487">More...</a><br/></td></tr>
<tr class="separator:a64e0d14e82a98dc7b4b6c87e5c979487"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a734f37cb1935f42015869f352f15be97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a734f37cb1935f42015869f352f15be97">exit</a> () override</td></tr>
<tr class="memdesc:a734f37cb1935f42015869f352f15be97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exits the current state and cleans up all allocated resources.  <a href="#a734f37cb1935f42015869f352f15be97">More...</a><br/></td></tr>
<tr class="separator:a734f37cb1935f42015869f352f15be97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5afaa8a6a07ffe16e05a4f0cb942e015"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5afaa8a6a07ffe16e05a4f0cb942e015"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a5afaa8a6a07ffe16e05a4f0cb942e015">draw</a> ()</td></tr>
<tr class="memdesc:a5afaa8a6a07ffe16e05a4f0cb942e015"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws something state related stuff on the screen. <br/></td></tr>
<tr class="separator:a5afaa8a6a07ffe16e05a4f0cb942e015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae08b61b61b2d9438aa24e55a2dd0559d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae08b61b61b2d9438aa24e55a2dd0559d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#ae08b61b61b2d9438aa24e55a2dd0559d">onMenuBack</a> ()</td></tr>
<tr class="memdesc:ae08b61b61b2d9438aa24e55a2dd0559d"><td class="mdescLeft">&#160;</td><td class="mdescRight">This method is called if the user chose the back button. <br/></td></tr>
<tr class="separator:ae08b61b61b2d9438aa24e55a2dd0559d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a46bb3085d9e3067ce9da9a9d18d1066b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a46bb3085d9e3067ce9da9a9d18d1066b">States</a> { <br/>
&#160;&#160;<b>KEEP_CURRENT</b>, 
<b>LOAD_SLOT_A</b>, 
<b>LOAD_SLOT_B</b>, 
<b>LOAD_SLOT_C</b>, 
<br/>
&#160;&#160;<b>MENU_MAIN</b>
<br/>
 }</td></tr>
<tr class="memdesc:a46bb3085d9e3067ce9da9a9d18d1066b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal GameMode states. <br/></td></tr>
<tr class="separator:a46bb3085d9e3067ce9da9a9d18d1066b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a2fe7f7bd1d665c8f51ea0f2c2bc37e4b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2fe7f7bd1d665c8f51ea0f2c2bc37e4b"></a>
<a class="el" href="class_state_machine.html">StateMachine</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a2fe7f7bd1d665c8f51ea0f2c2bc37e4b">fsm</a></td></tr>
<tr class="memdesc:a2fe7f7bd1d665c8f51ea0f2c2bc37e4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to the <a class="el" href="class_state_machine.html" title="Class which manages the states. ">StateMachine</a>. <br/></td></tr>
<tr class="separator:a2fe7f7bd1d665c8f51ea0f2c2bc37e4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ad7884a7b565ec3d78b188d887f9433"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ad7884a7b565ec3d78b188d887f9433"></a>
<a class="el" href="class_menu_load_game.html#a46bb3085d9e3067ce9da9a9d18d1066b">States</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#a7ad7884a7b565ec3d78b188d887f9433">m_nextState</a></td></tr>
<tr class="memdesc:a7ad7884a7b565ec3d78b188d887f9433"><td class="mdescLeft">&#160;</td><td class="mdescRight">The next State for the <a class="el" href="class_state_machine.html" title="Class which manages the states. ">StateMachine</a> to enter. <br/></td></tr>
<tr class="separator:a7ad7884a7b565ec3d78b188d887f9433"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdfc1937d6d56bf5e94727258d58b804"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdfc1937d6d56bf5e94727258d58b804"></a>
Menu2DPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_menu_load_game.html#afdfc1937d6d56bf5e94727258d58b804">menu</a></td></tr>
<tr class="memdesc:afdfc1937d6d56bf5e94727258d58b804"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shared pointer for better garbage handling. <br/></td></tr>
<tr class="separator:afdfc1937d6d56bf5e94727258d58b804"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class which holds the state LoadGame. </p>
<p>The user can load a previously saved game from one of three game slots.</p>
<dl class="section note"><dt>Note</dt><dd>To <a class="el" href="class_menu_load_game.html#a64e0d14e82a98dc7b4b6c87e5c979487" title="Runs the current state and does all the work. ">run()</a> a state, first <a class="el" href="class_menu_load_game.html#a1d1319eb1e74af8c48fb66f918f7c67e" title="Enters the state for the first time. ">enter()</a> the state. </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1d1319eb1e74af8c48fb66f918f7c67e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MenuLoadGame::enter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enters the state for the first time. </p>
<p>This will setup all the state related stuff. </p>
<dl class="section note"><dt>Note</dt><dd>To <a class="el" href="class_menu_load_game.html#a64e0d14e82a98dc7b4b6c87e5c979487" title="Runs the current state and does all the work. ">run()</a> the current state, first <a class="el" href="class_menu_load_game.html#a1d1319eb1e74af8c48fb66f918f7c67e" title="Enters the state for the first time. ">enter()</a> it. </dd></dl>

<p>Implements <a class="el" href="class_abstract_state.html#a6c54a7c162cd2bce6ddb83d5eef8ec4c">AbstractState</a>.</p>

</div>
</div>
<a class="anchor" id="a734f37cb1935f42015869f352f15be97"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MenuLoadGame::exit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Exits the current state and cleans up all allocated resources. </p>
<dl class="section note"><dt>Note</dt><dd>This is the last method to call, before the object is deleted. </dd></dl>

<p>Implements <a class="el" href="class_abstract_state.html#a12e500a1e81bcb710d6b50aa99695e3a">AbstractState</a>.</p>

</div>
</div>
<a class="anchor" id="a64e0d14e82a98dc7b4b6c87e5c979487"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_abstract_state.html">AbstractState</a> * MenuLoadGame::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Runs the current state and does all the work. </p>
<dl class="section return"><dt>Returns</dt><dd>AbstractState* the state which should be run after this state. A nullptr if the game should be exited. </dd></dl>

<p>Implements <a class="el" href="class_abstract_state.html#afdda3d13dbad7a41987c9e05b705cd9e">AbstractState</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>S:/dev/3dchess/src/gui/states/<a class="el" href="_menu_load_game_8h_source.html">MenuLoadGame.h</a></li>
<li>S:/dev/3dchess/src/gui/states/MenuLoadGame.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 9 2014 23:12:59 for 3dchess by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
